package ro.imc.andrei.beans;

import java.util.ArrayList;
import java.util.List;

public class Group {
	
	private String groupName;
	private int yearOfStudy;
	private String fieldOfStudy;
	private int groupId;
	
	public int getGroupId() {
		return groupId;
	}
	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String name) {
		this.groupName = name;
	}
	public int getYearOfStudy() {
		return yearOfStudy;
	}
	public void setYearOfStudy(int year) {
		this.yearOfStudy = year;
	}
	public String getFieldOfStudy() {
		return fieldOfStudy;
	}
	public void setFieldOfStudy(String fieldOfStudy) {
		this.fieldOfStudy = fieldOfStudy;
	}
	
	public String[] getFields(){
		String[] fields = new String[5];
		int i=0;
		
		fields[i++] = "groupId";
		fields[i++] = "groupName";
		fields[i++] = "yearOfStudy";
		fields[i++] = "fieldOfStudy";
		
		return fields;
	}
	
	public String[] getValues(){
		String[] values = new String[5];
		int i = 0;
		
		values[i++] = Integer.toString(this.getGroupId());
		values[i++] = this.getGroupName();
		values[i++] = Integer.toString(this.getYearOfStudy());
		values[i++] = this.getFieldOfStudy();
		
		return values;
	}
}
